<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2-04 直线line</title>
</head>
<body>
  <svg width="300" height="300">
    <!--
      x1, y1: 起点坐标
      x2, y2: 终点坐标
      stroke: 描边颜色，不设置就不显示
    -->
    <line
      x1="100"
      y1="100"
      x2="200"
      y2="200"
      stroke="#333"
    >
    </line>
  </svg>
</body>
</html>